package com.lottery.ruok.lottrey.adapter;

import android.content.Context;
import android.view.View;

import com.lottery.ruok.lottrey.adapter.recyclleradapter.BaseAppRecyclerViewAdapter;
import com.lottery.ruok.lottrey.bean.LHCLeftModel;
import com.lottery.ruok.lottrey.ui.component.LHCLeftMenuItemView;

import java.util.List;

public class LHCLeftMenuAdapter extends BaseAppRecyclerViewAdapter<LHCLeftModel> {
    public LHCLeftMenuAdapter(Context context) {
        super(context);
    }

    public LHCLeftMenuAdapter(Context context, List<LHCLeftModel> list) {
        super(context, list);
    }

    @Override
    protected View createItemView(Context mContext, int viewType) {
        return new LHCLeftMenuItemView(mContext);
    }

    @Override
    protected void onBindView(View itemView, int position) {
        if (itemView instanceof LHCLeftMenuItemView) {
            LHCLeftMenuItemView view = (LHCLeftMenuItemView) itemView;
            view.setData(getList().get(position));
        }
    }
}
